package com.example.basic.cmdprocess;

public class TestMain {

	public static void main(String[] args) {
		
		String[] command = new String[]{
//				"echo.>D:/mytest/b.txt"
//				"netstat -ano"
//				"DATE" 0
				"cmd /c echo.>D:/mytest/a.txt",
				"cmd /c echo.>D:/mytest/b.txt"
				
				
		}; 
		
		ExecuteResult result = ProcessUtil.executeCmd(command,true);
		if (result.successed) {
			for (String info : result.resultInfos) {
				System.out.println(info);
			}
		}
	}

}
